home *** CD-ROM | disk | FTP | other *** search
/ VRML 2.0 Sourcebook (2nd Edition) / VRML 2.0 Sourcebook CD [md5 fed90f4f9c39d5a60d477058775c7e21].iso / book / unix / ch18 / 18fig22b.wrl < prev    next >
Text File  |  1996-09-22  |  2KB  |  80 lines

  1. #VRML V2.0 utf8
  2. # The VRML 2.0 Sourcebook
  3. # Copyright [1997] By
  4. # Andrea L. Ames, David R. Nadeau, and John L. Moreland
  5. Group {
  6.     children [
  7.     # Lower-left video screen
  8.         Shape {
  9.             appearance Appearance {
  10.                 # no material, use emissive texturing
  11.                 texture DEF Video ImageTexture {
  12.                     url "grand.jpg"
  13.                 }
  14.             }
  15.             geometry DEF Screen IndexedFaceSet {
  16.                 solid FALSE
  17.                 coord Coordinate {
  18.                     point [
  19.                         0.0 0.0 0.0,  1.0 0.0 0.0,
  20.                         1.0 1.0 0.0,  0.0 1.0 0.0,
  21.                     ]
  22.                 }
  23.                 coordIndex [ 0, 1, 2, 3 ]
  24.                 texCoord TextureCoordinate {
  25.                     point [
  26.                         0.0 0.0,  0.5 0.0,
  27.                         0.5 0.5,  0.0 0.5,
  28.                     ]
  29.                 }
  30.                 texCoordIndex [ 0, 1, 2, 3 ]
  31.             }
  32.         },
  33.     # Lower-right video screen
  34.         Transform {
  35.             translation 1.1 0.0 0.0
  36.             children Shape {
  37.                 appearance Appearance {
  38.                 # no material, use emissive texturing
  39.                     texture USE Video
  40.                     textureTransform TextureTransform {
  41.                     # Slide to lower-right quadrant
  42.                         translation 0.5 0.0
  43.                     }
  44.                 }
  45.                 geometry USE Screen
  46.             }
  47.         },
  48.     # Upper-left video screen
  49.         Transform {
  50.             translation 0.0 1.1 0.0
  51.             children Shape {
  52.                 appearance Appearance {
  53.                 # no material, use emissive texturing
  54.                     texture USE Video
  55.                     textureTransform TextureTransform {
  56.                     # Slide to upper-left quadrant
  57.                         translation 0.0 0.5
  58.                     }
  59.                 }
  60.                 geometry USE Screen
  61.             }
  62.         },
  63.     # Upper-right video screen
  64.         Transform {
  65.             translation 1.1 1.1 0.0
  66.             children Shape {
  67.                 appearance Appearance {
  68.                 # no material, use emissive texturing
  69.                     texture USE Video
  70.                     textureTransform TextureTransform {
  71.                     # Slide to upper-right quadrant
  72.                         translation 0.5 0.5
  73.                     }
  74.                 }
  75.                 geometry USE Screen
  76.             }
  77.         }
  78.     ]
  79. }
  80.